#ifndef DOUBLEROTATINGRAINBOW_H
#define DOUBLEROTATINGRAINBOW_H

#include "RGBEffect.h"

class DoubleRotatingRainbow : public RGBEffect
{

public:
    DoubleRotatingRainbow();
    ~DoubleRotatingRainbow();

    //EFFECT_REGISTERER(ClassName(), CAT_RAINBOW, [](){return new DoubleRotatingRainbow;});

    static std::string const ClassName() {return "DoubleRotatingRainbow";}
    void StepEffect(ControllerZone* const controller_zone) override;

//private slots:
//    void on_frequency_valueChanged(int);

private:

    double time = 1000.0;

    double cos_time;
    double sin_time;

    double cos_reverse_time;
    double sin_reverse_time;

    double color_speed = 1.f;

    int frequency = 10;

    RGBColor GetColor(float, float, float, float, bool);
};

#endif // DOUBLEROTATINGRAINBOW_H
